import request from '@/utils/request'
import base from '@/api/base'

const chatApi = {
  chatGptApi: base.chatGptApi + '/', // 查询个人信息
}

/**
 * gpt
 * @returns
 */
export const chatGptApi = (msg) => {
  return request({
    url: chatApi.chatGptApi + `?q=${msg}&apitype=sql`,
    method: 'get',
    timeout: 120000, // 请求超时时间
  })
}
